/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.employee.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.vivo.employee.entity.ViEmpSSetSalery;
import com.vivo.employee.dao.ViEmpSSetSaleryDao;

/**
 * 级别工资Service
 * @author jyangye
 * @version 2018-01-10
 */
@Service
@Transactional(readOnly = true)
public class ViEmpSSetSaleryService extends CrudService<ViEmpSSetSaleryDao, ViEmpSSetSalery> {

	public ViEmpSSetSalery get(String id) {
		return super.get(id);
	}
	
	public List<ViEmpSSetSalery> findList(ViEmpSSetSalery viEmpSSetSalery) {
	    viEmpSSetSalery.getSqlMap().put("dsf", dataScopeFilterByCompany(viEmpSSetSalery.getCurrentUser(), "a"));
		return super.findList(viEmpSSetSalery);
	}
	
	public Page<ViEmpSSetSalery> findPage(Page<ViEmpSSetSalery> page, ViEmpSSetSalery viEmpSSetSalery) {
        viEmpSSetSalery.getSqlMap().put("dsf", dataScopeFilterByCompany(viEmpSSetSalery.getCurrentUser(), "a"));
		return super.findPage(page, viEmpSSetSalery);
	}
	
	@Transactional(readOnly = false)
	public void save(ViEmpSSetSalery viEmpSSetSalery) {
		super.save(viEmpSSetSalery);
	}
	
	@Transactional(readOnly = false)
	public void delete(ViEmpSSetSalery viEmpSSetSalery) {
		super.delete(viEmpSSetSalery);
	}
	
}